package com.ktjy.utils;

public class TestSingle {
    public static void main(String[] args) {
        Single single=Single.test();
        System.out.println("调用Singleton.test()方法获取实列对象:"+single);
        single=Single.getInstance();
        System.out.println("第一次调用Singleton.getInstance()方法获取实列对象:"+single);
        single=Single.getInstance();
        System.out.println("第二次调用Singleton.getInstance()方法获取实列对象:"+single);
    }
}
